package com.wjj.dao.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.wjj.dao.constants.TableConstants;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @Description
 * @Author junjun Wang
 * @Date Create in 23:04 2023/12/6
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@TableName(TableConstants.TABLE_STUDENT)
public class StudentPO {

	@TableId(value = TableConstants.STUDENT_ID, type = IdType.AUTO)
	private Integer studentId;

	@TableField(value = TableConstants.STUDENT_NAME)
	private String studentName;

	@TableField(value = TableConstants.STUDENT_AGE)
	private Integer studentAge;

	@TableField(value = TableConstants.STUDENT_GENDER)
	private String studentGender;

	@TableField(value = TableConstants.CLASS_ID)
	private Integer classId;

	@TableField(value = TableConstants.CREATE_TIME, fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(value = TableConstants.UPDATE_TIME, fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@Version
	@TableField(value = TableConstants.VERSION)
	private Integer version;
	@TableLogic(value = "deleted")
	private Integer deleted;
}
